package com.ld.poetry.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 播放音乐表
 * @author LinZR
 * */

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("music")
public class Music implements Serializable {
    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("artist")
    private String artist;

    @TableField("file_path")
    private String filePath;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")

    private LocalDateTime updateTime;

    @TableField("artist_type")
    private Byte artistType;
}
